package com.itchen;

import com.itchen.service.impl.BookServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author げっしょく
 * @date 2021/9/7
 */
public class Runfunction {
    public static void main(String[] args) {
        ApplicationContext cex = new ClassPathXmlApplicationContext("applicationContext.xml");

        BookServiceImpl bookService = (BookServiceImpl) cex.getBean("bookService");

        bookService.save();
    }
}
